<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    var a=60;
    var b=38;
    alert("a"+(a>=60 ?"及格":"不及格"));
    alert("b"+(b>=60 ?"及格":"不及格"));
</script>
</body>
</html>